home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / WebObjects / WebObjectsDoc_HTML / DynamicElements / ActiveImageEx1.wo / ActiveImageEx1.wos < prev    next >
Encoding:
Text File  |  1996-01-26  |  1.1 KB  |  52 lines

  1. id xValue, yValue;
  2.  
  3. - home {
  4.     id message;
  5.     
  6.     message = [NSString stringWithFormat:@"Clicked 'home' at %@,%@.", xValue, yValue];
  7.     [WOApp setResultMessage:message];
  8.     return [WOApp  pageWithName:@"Page2"];
  9. }
  10.  
  11.  
  12. - newProducts {
  13.     id message;
  14.     
  15.     message = [NSString stringWithFormat:@"Clicked 'newProducts' at %@,%@.", xValue, yValue];
  16.     [WOApp setResultMessage:message];
  17.     return [WOApp  pageWithName:@"Page2"];
  18. }
  19.  
  20.  
  21. - catalog {
  22.     id message;
  23.     
  24.     message = [NSString stringWithFormat:@"Clicked 'catalog' at %@,%@.", xValue, yValue];
  25.     [WOApp setResultMessage:message];
  26.     return [WOApp  pageWithName:@"Page2"];
  27. }
  28.  
  29.  
  30. - companyInfo {
  31.     id message;
  32.     
  33.     message = [NSString stringWithFormat:@"Clicked 'companyInfo' at %@,%@.", xValue, yValue];
  34.     [WOApp setResultMessage:message];
  35.     return [WOApp  pageWithName:@"Page2"];
  36. }
  37.  
  38.  
  39. - defaultAction {
  40.     id message;
  41.     
  42.     message = [NSString stringWithFormat:@"Clicked at %@,%@, which is outside of any mapped area.", xValue, yValue];
  43.     [WOApp setResultMessage:message];
  44.     return [WOApp  pageWithName:@"Page2"];
  45. }
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.